package com.qf.bargainexception;

import com.qf.enums.CustomerEnum;
import lombok.Getter;

@Getter
public class PoorException extends RuntimeException{

    private Integer code;

    public PoorException(CustomerEnum poorEnum){
        super(poorEnum.getMsg());
        this.code=poorEnum.getCode();
    }
    public PoorException(Integer code,String msg){
        super(msg);
        this.code=code;
    }
}
